package com.gewu.pm.ui.activity.approval;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.gewu.pm.R;
import com.gewu.pm.app.AppActivity;
import com.gewu.pm.ui.adapter.approval.RejectionRecordAdapter;

import java.util.ArrayList;
import java.util.List;

/**
 * 驳回记录
 */
public class RejectionRecordActivity extends AppActivity {

    private RecyclerView mApprovalFlowView;
    private RejectionRecordAdapter rejectionAdapter;

    public static void start(Context context) {
        Intent intent = new Intent(context, RejectionRecordActivity.class);
        context.startActivity(intent);
    }
    @Override
    protected int getLayoutId() {
        return R.layout.activity_rejection_record;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        mApprovalFlowView = findViewById(R.id.rv_approval_flow);
        // 设置 RecyclerView
        mApprovalFlowView.setLayoutManager(new LinearLayoutManager(this));
        rejectionAdapter = new RejectionRecordAdapter(this);
        mApprovalFlowView.setAdapter(rejectionAdapter);

    }

    @Override
    protected void initData() {
        List<String> list = new ArrayList<>();
        list.add("喜洋洋");
        list.add("灰太狼");
        rejectionAdapter.setData(list);
    }

}